{extend name="public:base" /}
{block name="body"}
<div class="news-banner">
    <div class="bg"></div>
    <div class="w1400 pos">
        <h1 class="blocktitle wow fadeInUp">新闻中心</h1>
        <div class="tui">
            <a class="new-layout1 wow fadeInUp" href="{:url('news',['id'=>$articleTopOne.article_id])}">
                <div class="left">
                    <div class="tag">
                        公司新闻
                    </div>
                    <div class="tit dot2">
                        {$articleTopOne['title']}
                    </div>
                    <div class="txt dot2">
                        {$articleTopOne['content'] | raw}
                    </div>
                    <div class="time">
                        {$articleTopOne['create_time']}
                    </div>
                </div>
                <div class="right">
                    <img src="{$imgDomain.$articleTopOne['photo']}" alt="{$articleTopOne['title']}">
                </div>
            </a>
        </div>
    </div>
</div>

<div class="news1 wow fadeInUp">
    <div class="w1400">
        <div class="new-tab">
            {volist name="catData" id="vo" key="i" }
            <a href="/index/page/newslist?page=1&catId={$vo.cat_id}" class="item
                {if $catId == $vo.cat_id}
                    on
                {/if}
                ">
                {$vo.cat_name}
            </a>
            {/volist}
        </div>
    </div>
</div>
<div class="news-body">
    <div class="w1400 new-layout2">
        <div class="body-list">
            {volist name="articleData" id="vo"}
            <a href="{:url('news',['id'=>$vo.article_id])}" class="news-li wow fadeInUp" href="">
                <div class="news-img">
                    <img src="{$imgDomain.$vo.photo}" alt="">
                </div>
                <div class="news-info">
                    <div class="time">
                        {$vo.create_time}
                    </div>
                    <div class="tit ">
                        {$vo.title}
                    </div>
                    <div class="txt dot2">
                        {$vo.content2 | raw}
                    </div>
                </div>
            </a>
            {/volist}
        </div>
        <div class="fixed-menu">
            <div class="tag">
                <div class="toptit">
                    热门标签
                </div>
                <ul class="tag-list">

                    {volist name="labelData" id="vo"}
                        <li class="item" >
                            <a href="{:url('newslist',['page'=>1,'labelId'=>$vo.id])}">
                                {$vo.label_name}
                            </a>
                        </li>
                    {/volist}
                </ul>
            </div>
            <div class="tuijian">
                <div class="toptit">
                    推荐新闻
                </div>
                <div class="tui-list">
                    {volist name="recommendData" id="vo" length="5"}
                        <a class="li" href="{:url('news',['id'=>$vo.article_id])}">
                            <div class="time">
                                {$vo.create_time}
                            </div>
                            <div class="tit">
                                {$vo.title}
                            </div>
                        </a>
                    {/volist}
                </div>
            </div>
        </div>
    </div>
</div>
<div class="page">
    <div class="w1400">
        <div class="pagination">
            {gt name="pageInfo.pageIndex" value="1" }
            <a class="prev se-item" href="{:url('newslist',['page'=>$pageInfo['pageIndex']-1,'catId'=>$catId])}">
                上一页
            </a>
            {/gt}
            {for start="1" end="$pageInfo['totalPage']+1"}
            <a class="page-num" href="{:url('newslist',['page'=>$i,'catId'=>$catId])}">{$i}</a>
            {/for}

            {if $pageInfo.pageIndex != $pageInfo.totalPage}
            <a class="next se-item" href="{:url('newslist',['page'=>$pageInfo['pageIndex']+1,'catId'=>$catId])}">
                下一页
            </a>
            {/if}

        </div>
    </div>
</div>
{/block}